x86/mm: don't treat entirely empty p2m entries as RAM.
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 5 May 2011 16:40:34 +0000 (17:40 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Thu, 5 May 2011 16:40:34 +0000 (17:40 +0100)
commit31915b333f5413d3be1f9f90aace5bf8b3cedab0
treed6e512b259c52d6632869575d66f9d9ff9a36924
parent328dadc3d5d948ad78b7b4edc79fcb6ae785a4f2
x86/mm: don't treat entirely empty p2m entries as RAM.

The AMD IOMMU pagetable-sharing code switched p2m type 0 to be
r/w RAM rather than invalid.  Be more careful when translating
from PTEs to p2m types that we don't treat all-zeros as a
RAM mapping of frame zero.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/hap/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h